
import java.awt.event.*;


public class timerx implements ActionListener {

    static game frame;
    public static KeyListener myTester;

    public timerx()
    {
        frame = new game();
        myTester=new KeyListenerTester();
        frame.addKeyListener(myTester);
    }

    public void actionPerformed(ActionEvent ae) {
        if(board.possibleDown)
        {
            board.moveDown();
            board.printBoard();
            //frame.repaint();

        }
        else
        {
            board.createPento();
            board.checkAndPlace();
            board.printBoard();


        }

    }
}

